Skip to content

fix: use startRun in single-type filter E2E test to avoid LLM flakiness#609

Merged
FL4TLiN3 merged 1 commit intomainfrom
fix/e2e-filter-test-startrun
Feb 23, 2026
Merged

fix: use startRun in single-type filter E2E test to avoid LLM flakiness#609
FL4TLiN3 merged 1 commit intomainfrom
fix/e2e-filter-test-startrun

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • The --filter completeRun E2E test consistently fails (4 consecutive failures on changeset-release/main) because completeRun is only emitted after a successful LLM call
  • When the LLM errors under concurrent test load, the runtime emits stopRunByError instead, which the filter blocks, resulting in zero events with exit code 0
  • Switches to --filter startRun which is emitted before any LLM calls, making the test reliable while still validating the single-type filter mechanism

Root cause

The stoppedByError checkpoint status doesn't cause a non-zero exit code (only PerstackError does), so the test sees exit code 0 but zero filtered events.

Test plan

  • CI passes (typecheck, lint, build, test)
  • E2E cli-core passes on changeset-release/main after merge

🤖 Generated with Claude Code

@FL4TLiN3 FL4TLiN3 closed this Feb 23, 2026
@FL4TLiN3 FL4TLiN3 reopened this Feb 23, 2026
The --filter completeRun test consistently fails because completeRun is
only emitted after a successful LLM call. When the LLM errors (common
under concurrent test load), the runtime emits stopRunByError instead,
which the filter blocks, resulting in zero events with exit code 0.

Switch to --filter startRun which is emitted before any LLM calls,
making the test reliable while still validating the single-type filter
mechanism.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 force-pushed the fix/e2e-filter-test-startrun branch from da2174d to a4f6fec Compare February 23, 2026 17:03
@FL4TLiN3 FL4TLiN3 merged commit 5bed2d4 into main Feb 23, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the fix/e2e-filter-test-startrun branch February 23, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant